package com.itheima.stock.common.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StockUpdownDomain {
    /**
     * 交易量
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","交易总量"},index = 8)
   private Long tradeAmt;
    /**
     * 前收盘价
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","前收盘价"},index = 3)
   private BigDecimal preClosePrice;
    /**
     * 振幅
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","振幅"},index = 7)
    private BigDecimal amplitude;
    /**
     * 股票编码
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","股票编码"},index = 1)
    private String code;
    /**
     * 名称
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","股票名称"},index = 2)
    private String name;
    /**
     * 日期
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","日期"},index = 10)
    @DateTimeFormat("yyyy/MM/dd HH:mm")
    private String curDate;
    /**
     * 交易金额
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","交易总金额"},index = 9)
    private BigDecimal tradeVol;
    /**
     * 张涨跌
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","涨跌"},index = 5)
    private BigDecimal increase;

    /**
     * 涨幅
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","涨幅"},index = 6)
    private BigDecimal upDown;
    /**
     * 当前价格
     */
    @ExcelProperty(value = {"股票涨幅信息统计表","当前价格"},index = 4)
    private BigDecimal tradePrice;
}